package com.encryption.common.annotation;

import com.encryption.common.handler.encrypt.AES;
import com.encryption.common.handler.DataAbstractHandler;
import com.encryption.common.handler.desensitization.Desensitization;

import java.lang.annotation.*;



/**
* @Description: 实现数据加密，解密，脱敏
* @Author: JXQ
* @Date: 2022/11/21 0021
*/
@Inherited
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface MybatisDataProcess {
    /**
     *加密模式
     * @return
     */
    Class<? extends DataAbstractHandler> encryptionMode() default AES.class;

    /**
     *脱敏模式
     */
    Class<? extends DataAbstractHandler> desensitizationMode () default Desensitization.class;



}

